package com.duoqin.payservice.data;

import com.google.gson.annotations.SerializedName;

public class ExpenseResponse {

    /**
     * code : 0
     * msg : 成功
     * data : {"id":4,"userId":3,"billingType":0,"balance":19.87,"expiredAt":1545379641167,"createAt":1540195641167,"modifyAt":1540349468958}
     */

    @SerializedName("code")
    private int code;
    @SerializedName("msg")
    private String msg;
    @SerializedName("data")
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * balance : 19.87
         * cost : 0.1
         * expiredAt : 1545379641167
         */

        @SerializedName("cost")
        private double cost;
        @SerializedName("balance")
        private double balance;
        @SerializedName("expiredAt")
        private long expiredAt;

        public double getCost() {
            return cost;
        }

        public void setCost(double cost) {
            this.cost = cost;
        }

        public double getBalance() {
            return balance;
        }

        public void setBalance(double balance) {
            this.balance = balance;
        }

        public long getExpiredAt() {
            return expiredAt;
        }

        public void setExpiredAt(long expiredAt) {
            this.expiredAt = expiredAt;
        }
    }
}
